package com.ruoyi.cloudsyncuser.utils;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(true,01,"操作成功"),
    FAILURE(false,02,"操作失败"),
    SYSTEM_ERROE(false,03,"系统错误"),
    FILE_NOTFUND(false,04,"文件不存在"),
    UPLOAD_FAILURE(false,05,"文件上传失败"),
    TOKEN_EXPIRED(false,06,"token失效");

    //表示接口是否请求成功
    private final Boolean success;
    //响应状态码
    private final Integer code;
    //状态码描述信息
    private final String msg;

    ResultCodeEnum(boolean success, Integer code, String msg){
        this.success = success;
        this.code = code;
        this.msg = msg;
    }

}